import { ECOption } from '../config'
import echarts from '../config'

export interface BaseEchartsType {
    registerMap: (name: string, map: any) => void
    registerTheme: (name: string, theme: any) => void
    init: () => echarts.ECharts | undefined
    setOption: (option: ECOption, params?: { isClear?: boolean; notMerge?: boolean; lazyUpdate?: boolean }) => void
    getEChartsInstance: () => echarts.ECharts | null
    resize: (opts?: echarts.ResizeOpts, time: number, duration: number) => void
    clear: () => void
    dispose: () => void
}
